
package com.huizhan.web.dao;

import org.springframework.data.jpa.repository.*;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.*;

import java.util.*;
import com.huizhan.web.model.*;


@Repository 
public interface RoleAuthorizeDao extends JpaRepository<RoleAuthorize,Long>
{
    /**
     * 根据角色id删除角色关联权限
     * @param projectRoleId
     */
    void deleteByProjectRoleId(Long projectRoleId);
    
    /**
     * 根据项目角色ID获取权限集合
     * @param projectRoleId 项目角色ID
     * @return 权限集合
     */
    List<RoleAuthorize> findByProjectRoleId(Long projectRoleId);
}
